home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 39 / Issue 39.iso / pc / PCSoftware / RoboHelp / DISK1 / DATA.1 / cshuser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-04  |  1.7 KB  |  57 lines

  1. /***************************************************************************
  2.  *
  3.  * File: CSHUSER.H
  4.  *
  5.  * Descripton: ContextHelp Initialization Definition File
  6.  *
  7.  * Notes:
  8.  *
  9.  ****************************************************************************
  10.  *
  11.  * Copyright (c) 1995, 1996 - Blue Sky Software Corp. - All Rights Reserved
  12.  *
  13.  ***************************************************************************/
  14.  
  15. #ifndef CSHUSER_H
  16. #define CSHUSER_H
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. #ifdef __SC__
  23.  #define WINAPI 
  24. #endif
  25.  
  26. //**************************************************************************
  27.  
  28. // User Application Initialization Functions
  29.  
  30. BOOL WINAPI CSHInitialize (LPSTR a_pHelpFile, BOOL bContextMenu);
  31. BOOL WINAPI CSHRegisterDialog (HWND a_hDialog, long a_UniqueID);
  32. typedef BOOL (WINAPI *fnCSHREGISTERDIALOG) (HWND a_hDialog, long a_UniqueID);
  33.  
  34. // Special Advanced Functionality Routines                                      
  35. BOOL WINAPI CSHContextMenu(HWND hDlg, HWND hWndPoint, LPPOINT pPt);
  36. BOOL WINAPI CSHContextHelp(HWND hDlg, HWND hCtrl, int iContextType);
  37.  
  38. #ifdef __cplusplus
  39.  #define CSHHelpEnabled(_pCshOn) ::SendMessage(::GetFocus(), (UINT)RegisterWindowMessage("WM_CSHHASHELP"), (WPARAM)(0), (LPARAM)(LPINT)_pCshOn)
  40. #else
  41.  #define CSHHelpEnabled(_pCshOn) SendMessage(GetFocus(), (UINT)RegisterWindowMessage("WM_CSHHASHELP"), (WPARAM)(0), (LPARAM)(LPINT)_pCshOn)
  42. #endif
  43.  
  44. #define CSH_DLLNAME             "CSH.DLL"
  45. #define CSHTML_DLLNAME          "CSHTML.DLL"
  46. #define CSH_INITFUNCNAME        "CSHInitialize"
  47. #define CSH_REGISTERFUNCNAME    "CSHRegisterDialog"
  48.  
  49. //**************************************************************************
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55. #endif // CSHUSER_H
  56.  
  57.